import request from '@/utils/request'

// 创建用户余额扣减记录
export function createUserBalanceRecord(data) {
  return request({
    url: '/system/user-balance-record/create',
    method: 'post',
    data: data
  })
}

// 更新用户余额扣减记录
export function updateUserBalanceRecord(data) {
  return request({
    url: '/system/user-balance-record/update',
    method: 'put',
    data: data
  })
}

// 删除用户余额扣减记录
export function deleteUserBalanceRecord(id) {
  return request({
    url: '/system/user-balance-record/delete?id=' + id,
    method: 'delete'
  })
}

// 获得用户余额扣减记录
export function getUserBalanceRecord(id) {
  return request({
    url: '/system/user-balance-record/get?id=' + id,
    method: 'get'
  })
}

// 获得用户余额扣减记录分页
export function getUserBalanceRecordPage(params) {
  return request({
    url: '/system/user-balance-record/page',
    method: 'get',
    params
  })
}
// 导出用户余额扣减记录 Excel
export function exportUserBalanceRecordExcel(params) {
  return request({
    url: '/system/user-balance-record/export-excel',
    method: 'get',
    params,
    // responseType: 'blob'
  })
}